package lt.ntec.danblog.server.blog;

import lt.ntec.danblog.server.core.validator.ValidationException;

public interface Service {

    String DOCUMENT_FIELD_ENDING = "html";

    public void deletePost(Long id);

    public Long createPost(String title, String content, String tag)
            throws BlogServiceException, ValidationException;

    public void updatePost(Long id, String title, String content, String tag)
            throws BlogServiceException, ValidationException;

    public Long addComment(Long id, String content)
            throws BlogServiceException, ValidationException;
}
